<%@page import="java.util.Arrays" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>beanTag_result.jsp</title>
</head>
<body>
	<div class=title>Bean Tag 없이 출력</div>
	<%
		String irum = request.getParameter("irum");
		String address = request.getParameter("address");
		int kor = Integer.parseInt(request.getParameter("kor"));
		int mat = Integer.parseInt(request.getParameter("mat"));
		String[] chk= request.getParameterValues("chk");
	%>
	<ul>
		<li>이름 : <%=irum %></li>
		<li>주소 : <%=address %></li>
		<li>국어 : <%=kor %></li>
		<li>수학 : <%=mat %></li>
		<li>취미 : <%=Arrays.toString(chk) %></li>	
	</ul>
	
	<div class=title>Bean Tag를 사용하여 출력</div>
	<jsp:useBean id="tag" class="uiux4.BeanTag" scope="page">
	<jsp:setProperty property="*" name="tag"></jsp:setProperty></jsp:useBean>
	<ul>
		<li>이름 : <%=tag.getIrum() %></li>
		<li>주소 : <%=tag.getAddress() %></li>
		<li>국어 : <%=tag.getKor() %></li>
		<li>영어 : <%=tag.getMat() %></li>
		<li>취미 : <%=Arrays.toString(tag.getChk()) %></li>
	</ul>
</body>
</html>